import React, {Component} from 'react';
import PropTypes from 'prop-types';

class Frame extends React.Component {
    render() {
        return <iframe src={this.props.frameSource} frameBorder="none" scrolling="none" style={{
            border: "none",
            padding: 0,
            margin: 0,
            overflowX: "hidden",
            overflowY: "auto",
            width: "100%",
            height: "calc(100vh - 56px)"
        }} />;
    }
}

Frame.PropTypes = {
    frameSource: PropTypes.string
}

export default Frame;